define(function(require, exports, module) {
	"use strict";
	require("../../dep/mui/js/mui.min.js");
	require("../jquery-3.1.1.min.js");
	var abpUse = require("../abp.js");
	var template = require("template");
	var abp = abpUse.abpstart;
	mui.init({
		swipeBack: true //启用右滑关闭功能
	});

	$(function() {
		var wh_id = sessionStorage.getItem('check_wh_id');
		var catalog_id = sessionStorage.getItem('check_catalog_id');
		var option = {};
		console.log(wh_id);
		console.log(catalog_id);
		var whIds = [wh_id];
		var cataLogIds = [catalog_id];
		var dataModel = {
			"DeptId": 0,
			"WhId": whIds,
			"CatalogId": cataLogIds,
			"InfoGoodsKeyword": "",
			"IsShowZero": true,
			"GoodsId": 0,
			"UnitCode": "",
			"UnitCodeConvert": 0,
			"PageIndex": 1,
			"PageSize": 100
		};
		abp.services.app.whInventoryTotal.rptGetPage(dataModel, option)
			.done(function(data) {
				//	            	$("#goodsCount").text(data.totalCount);	            	
				//					var html = template("checkList",data); 	
				//	            	$("#check-goods-items").html(html);	            	
			})
			.fail(function(data) {

			});
	});
	mui("body").on("tap", "#FinishCheck", function() {

	});
});